//
//  DetailViewController.m
//  tv3rss
//
//  Created by Job Search on 01/08/14.
//  Copyright (c) 2014 responsfabrikken. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()
- (void)configureView;
@end

@implementation DetailViewController

#pragma mark - Managing the detail item

- (void)setDetailItem:(id)newDetailItem
{
    // Update the view.
    [self configureView];
}

- (void)configureView
{
    // Update the user interface for the detail item.
    
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    NSData *urlData = [NSData dataWithContentsOfURL:[NSURL URLWithString:self.url]];
    [self.webView loadData:urlData MIMEType: @"text/html" textEncodingName: @"UTF-8" baseURL:nil];
    
    //[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
    

}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
